{extend name="public:common_index"/}
{block name="main"}
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-list"></i> {$title}</h3>
        </div>
        <div class="panel-body">
            <div class="navbar navbar-default">
                <form action="" id="search-form2" class="navbar-form form-inline" method="get" onsubmit="return false">

                    <div class="form-group">
                    <label class="control-label" >时间筛选</label>
                    <div class="input-group">
                    <input type="text" name="startDate"  autocomplete="off" value="{$Think.get.startDate}" placeholder="选择开始时间"
                    class="form-control timepicker">
                    </div>
                    </div>
                    <div class="form-group">
                    <div class="input-group">
                    <input type="text" name="endDate"  autocomplete="off" value="{$Think.get.endDate}" placeholder="选择结束时间"
                    class="form-control timepicker">
                    </div>
                    </div>
                    <label class="control-label" >流水类型</label>
                    <div class="input-group">
                        {:arr2select('status',$status,'全部',input('get.status'),'key','val')}
                    </div>
                    <label class="control-label" >货币类型</label>
                    <div class="input-group">
                        {:arr2select('money_type',$money_type,'全部',input('get.money_type'),'coin_id','coin_name')}
                    </div>
                    <button type="submit" onclick="javascript:document.getElementById('search-form2').submit();"
                            id="button-filter search-order" class="btn btn-primary"><i class="fa fa-search"></i> 筛选
                    </button>

                    平台流水:{$stream}
                    用户充值:{$recharge}
                    用户提现:{$cash}

                </form>
            </div>
            <div id="ajax_return">
                <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover">
                            <thead>
                            <tr>
                                <td>ID</td>
                                <td>充值货币</td>
                                <td>状态</td>
                                <td>金额</td>
                                <td>备注</td>
                                <td>创建时间</td>
                            </tr>
                            </thead>
                            <tbody>
                            <!-- 列表循环开始 -->
                            {volist name="rows" id="row" }
                            <tr>
                                <td>{$row.c_id}</td>
                                <td>{$money_type[$row.money_type]['coin_name']}</td>
                                <td>{$status[$row.status]['val']}</td>
                                <td>{$row.money}</td>
                                <td>{$row.remark}</td>
                                <td>{$row.create_time}</td>
                            </tr>
                            {/volist}
                            <!-- 列表循环结束 -->
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
            <div id='pagerarea'>{$pageHTML}</div>
        </div>
    </div>
{/block}

{block name="js"}
<script>
    $(function () {
        var type   = "{$Think.get.type}";
        if(type != ''){
            $('#type'+type).attr('selected',true)
        }

        var status   = "{$Think.get.status}";
        if(status != ''){
            $('#status'+status).attr('selected',true)
        }
    })

</script>



{/block}



